<?php
/**
 * Created by PhpStorm.
 * User: testypp
 * Date: 2018/1/2
 * Time: 下午3:33
 */


class Domain_Comment {

    // 根据Topic ID获得Comment
    public function getCommentByTopicID($topicid) {
        //$rs = array();

//        $topicid = intval($topicid);
//        if ($topicid <= 0) {
//            return $rs;
//        }

        $model = new Model_Comment();
        $rs = $model->getCommentByTopicID($topicid);

        return $rs;
    }


    // 添加评论
    public function addComment($userid, $username, $topicid, $commentstring, $ishot) {
        $rs = array();

        $model = new Model_Comment();

        $rs = $model->addComment($userid, $username, $topicid, $commentstring, $ishot);

        return $rs;
    }


}